/**
 * Auto.java
 *   1. Encapsulate this class ( set vars to private.) Provide getmethods
 *      and setmethods for each variable
 *
 *   2. Add a default constructor which initializes miles and gas to zero
 *
 *   3. Overload this constructor which takes 2 parameters:
 *      inputmiles and inputgas.
 *      This constructor then sets the class variables miles and gas to the
 *      respective input parameters, inputmiles and inputgas.
 *
 * @author  John Thomason
 *    Date: Fall 2008
 *  Course: CS222  Java II
 * Seminar: 4
 *  Assign: 3
 */
public class Auto
{

//INSTANCE VARS

    private int miles, gas;

    
//CONSTRUCTORS

    /**
     * No-Arg constructor
     * Sets the default miles and gas to zero.
     */
    public Auto(){
        this(0,0);
    }

    /**
     * Constructor
     * Sets user defined miles and gas parameters
     *
     * @param inputMiles  The user defined miles value
     * @param inputGas    The user defined gas value
     */
    public Auto(int inputMiles, int inputGas){
        setMiles(inputMiles);
        setGas(inputGas);
    }


//GETTERS

    /**
     * Get the current miles value
     *
     * @return  The current miles value as an int
     */
    public int getMiles(){
        return miles;
    }//getMiles()

    /**
     * Get the current gas value
     *
     * @return  The current gas value as an int
     */
    public int getGas(){
        return gas;
    }//getGas()


//SETTERS

    /**
     * Save the user passed miles value.
     *
     * @param inputMiles  The user passed miles value.
     */
    public void setMiles(int inputMiles){
        this.miles = inputMiles;
    }//setMiles()

    /**
     * Save the user passed gas value.
     *
     * @param inputGas  The user passed gas value.
     */
    public void setGas(int inputGas){
        this.gas = inputGas;
    }//setGas()

}//Auto Class
